package com.burstly.lib.ui;

import com.burstly.lib.component.ComponentQueue.IQueueComponentListener;
import com.burstly.lib.component.IAdaptorController;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;

final class BurstlyViewQueueListener
  implements ComponentQueue.IQueueComponentListener
{
  private final Reference<BurstlyView> mBview;
  private final boolean mPrecacheRequest;

  BurstlyViewQueueListener(BurstlyView paramBurstlyView)
  {
    this.mBview = new WeakReference(paramBurstlyView);
    this.mPrecacheRequest = paramBurstlyView.isPrecacheRequest();
  }

  public void componentChanged(IAdaptorController paramIAdaptorController)
  {
    BurstlyView localBurstlyView = (BurstlyView)this.mBview.get();
    if (localBurstlyView == null)
      return;
    paramIAdaptorController.setPrefetchedRequest(this.mPrecacheRequest);
    localBurstlyView.setActiveController(paramIAdaptorController);
  }

  public void rerequestServer()
  {
    BurstlyView localBurstlyView = (BurstlyView)this.mBview.get();
    if (localBurstlyView == null);
    while (localBurstlyView.isDestroyed())
      return;
    localBurstlyView.restartRequest(this.mPrecacheRequest);
  }

  public void scheduleRequest(int paramInt)
  {
    BurstlyView localBurstlyView = (BurstlyView)this.mBview.get();
    if (localBurstlyView == null);
    while (localBurstlyView.isDestroyed())
      return;
    localBurstlyView.setServerSideRefreshInterval(paramInt * 1000);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.ui.BurstlyViewQueueListener
 * JD-Core Version:    0.6.2
 */